<div class="<?php echo $form1 ?>">
<?php if(isset($autherr)) echo $autherr; ?>
<form action = '<? echo $_SERVER["SCRIPT_NAME"]; ?>' method='post'>
    <div>
        <label>Логин:&nbsp;&nbsp;&nbsp;</label>
        <input type = 'text' name = 'onlog' />
        <label>Пароль: </label>
        <input type = 'password' name = 'sapa' /><br />
        <input style="float: right;" type = 'submit' name = 'log' value = 'Войти' />
    </div>
</form>
</div>
<div class="<?php echo $form2 ?>">
    Добро пожаловать,&nbsp; <?php echo $name; ?>
    <form action = '<? echo $_SERVER["SCRIPT_NAME"]; ?>' method='post'>
    <input style="float: right;" type = 'submit' name = 'logout' value = 'Выйти' />
    </form>
</div>
